home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global bookmarkPath, tipomaquina
- clearGlobals()
- set tipomaquina to the machineType
- bookm()
- end
-
- on bookm
- global tipomaquina, bookmarkPath, buscaocrea
- if tipomaquina = 256 then
- openXLib("../curso/WinDir.dll")
- set utilObj to WinDir(mnew)
- set WinPath to utilObj(mWinDir)
- utilObj(mdispose)
- closeXLib("../curso/WinDir.dll")
- set bookmarkPath to WinPath & "\" & "bookm.txt"
- openXLib("../curso/FileIO.dll")
- set buscaocrea to fileio(mnew, "read", bookmarkPath)
- if buscaocrea = -43 then
- set escribelist to fileio(mnew, "write", bookmarkPath)
- escribelist(mWriteChar, 48)
- escribelist(mdispose)
- end if
- closeXLib("../curso/FileIO.dll")
- else
- openXLib("MovieUtilities.XObj")
- if objectp(utilObj) then
- utilObj(mdispose)
- end if
- set utilObj to MovieUtilities(mnew)
- set result to value(utilObj)
- if result < 0 then
- alert("Error" && result && "occurri├│ cuando intentando a crear el objecto.")
- exit
- end if
- set bookmarkPath to utilObj(mGetSystemPath) & "bookm.txt"
- utilObj(mdispose)
- closeXLib("MovieUtilities.XObj")
- set buscaocrea to fileio(mnew, "read", bookmarkPath)
- if buscaocrea < 0 then
- set escribelist to fileio(mnew, "write", bookmarkPath)
- escribelist(mWriteChar, "0")
- escribelist(mdispose)
- end if
- end if
- end
-